debug: remove open-coded debug checks in gtktextsegment
authorChristian Hergert <christian@hergert.me>
Wed, 20 Apr 2016 02:35:52 +0000 (19:35 -0700)
committerChristian Hergert <chergert@redhat.com>
Wed, 20 Apr 2016 02:56:17 +0000 (19:56 -0700)
commit3df2e0b26a6c3fe629ac4950ab2b55ebd07258da
treebfa179c989821ba6bf354d0c72b239b9f05d241c
parentf3e6d930a803b6d26b65e465c1cd7ea1407912a6
debug: remove open-coded debug checks in gtktextsegment

These runtime checks were being performed whether or not we were in a
debug build. Using GTK_DEBUG_CHECK() will compile out of production
builds, as it will result in something like:

  if (G_UNLIKELY(0))

which the optimizer can prune.

https://bugzilla.gnome.org/show_bug.cgi?id=765284
gtk/gtktextsegment.c